package com.puppet.building.pojo.enums;

import lombok.Getter;

@Getter
public enum BuildingCode {

    SAVE_SUCCESS(200,"保存成功"),
    SAVE_FAIL(500,"保存失败"),

    DELETE_SUCCESS(200,"删除成功"),
    DELETE_BUILDING_FAIL(500,"不能删除此楼宇，此楼宇下有房子与之绑定"),

    LOGIN_SUCCESS(200,"登录成功"),
    LOGIN_FAIL(500,"登录失败");

    private Integer code;
    private String message;

    BuildingCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    }


